package com.yuda.afterexamscore.service.impl;

import com.yuda.afterexamscore.mapper.ImportScoreExcelMapper;
import com.yuda.afterexamscore.service.IImportScoreExcelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class ImportScoreExcelServiceImpl implements IImportScoreExcelService {

    @Autowired
    private ImportScoreExcelMapper importScoreExcelMapper;

    @Override
    public int insertScoreBatch(List<Map<String, Object>> listMap) {


        return importScoreExcelMapper.insertScoreBatch(listMap);
    }

    @Override
    public int updateNanHaoInfo(String examUUID, String mappingSubjectId, Integer gaige) {
        return importScoreExcelMapper.updateNanHaoInfo(examUUID,mappingSubjectId,gaige);
    }

    @Override
    public int batchInsertIntoScore(String examUUID, Map<String,String> subjectMapObj,Integer gaige) {
        return importScoreExcelMapper.batchInsertIntoScore(examUUID,subjectMapObj,gaige);
    }
}
